﻿using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Core.IO;
using Core.Util;

using GPSCrowdSource.Algorithms;

namespace GPSCrowdSource.DataStructures {
  
  /// <summary>
  /// This can read in a file of GPS data that is formatted according to
  /// lat,lon,alt,time
  /// lat,lon,alt,time
  /// ...
  /// 
  /// Where lat/lon are in decimal degrees.
  /// </summary>
  public class GPSFileDataSource : GPSStringDataSource {

    /// <summary>
    /// Create a file data source capable of reading from a GPS text formatted file.
    /// </summary>
    /// <param name="inPath"></param>
    public GPSFileDataSource(FilePath inPath) {
      Init(File.ReadAllText(inPath.ToString()));
      }
    
    }

  }
